package me.zhengjie.modules.system.domain;/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author greazy
* @date 2025-04-07
**/
@Data
@TableName("poker_activate_info")
public class PokerActivateInfo implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "活动名称")
    private String name;

    @ApiModelProperty(value = "pubPoker1")
    private String pubPoker1;

    @ApiModelProperty(value = "pubPoker2")
    private String pubPoker2;

    @ApiModelProperty(value = "换牌所需基础筹码数量")
    private Integer changePokerBaseNum;

    @ApiModelProperty(value = "每次换牌需要增加筹码数量")
    private Integer changePokerAddNum;

    @ApiModelProperty(value = "免费换牌次数")
    private Integer activeFreeChage;

    @ApiModelProperty(value = "最大换牌次数")
    private Integer activeMaxChage;

    @ApiModelProperty(value = "前多少名")
    private Integer fontPrizeNum;

    @ApiModelProperty(value = "前多少名奖品")
    private String fontPrizeNumGoodid;

    @ApiModelProperty(value = "前三名奖品")
    private String fontPrizeThirdGoodid;

    @ApiModelProperty(value = "特殊物品")
    private String specialGoodid;

    @ApiModelProperty(value = "启用状态")
    private Integer runStatus;

    private Integer activateType;
    private String joinGoodId;
    private String joinGoodName;
    private Integer joinGoodNum;

    @ApiModelProperty(value = "服务器标识")
    private String serverId;

    @ApiModelProperty(value = "活动流水号")
    private String taskId;
    private String activateDesc;

    @ApiModelProperty(value = "活动截止时间")
    private Timestamp endTime;

    public void copy(PokerActivateInfo source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
